<template>
  <el-select>
    <el-option
      v-for="item in attrs.options"
      :key="item.value"
      :label="item.label"
      :value="item.value"
    />
  </el-select>
</template>
<script setup>
import { useAttrs } from 'vue';
// 获取所有传进来的属性
const attrs = useAttrs()
</script>
<style>
</style>